﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013CD RID: 5069
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyArea : IMessage<TrainPartyArea>, IMessage, IEquatable<TrainPartyArea>, IDeepCloneable<TrainPartyArea>, IBufferMessage
	{
		// Token: 0x17003FE5 RID: 16357
		// (get) Token: 0x0600E2F9 RID: 58105 RVA: 0x0025EBA3 File Offset: 0x0025CDA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyArea> Parser
		{
			get
			{
				return TrainPartyArea._parser;
			}
		}

		// Token: 0x17003FE6 RID: 16358
		// (get) Token: 0x0600E2FA RID: 58106 RVA: 0x0025EBAA File Offset: 0x0025CDAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyAreaReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003FE7 RID: 16359
		// (get) Token: 0x0600E2FB RID: 58107 RVA: 0x0025EBBC File Offset: 0x0025CDBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyArea.Descriptor;
			}
		}

		// Token: 0x0600E2FC RID: 58108 RVA: 0x0025EBC3 File Offset: 0x0025CDC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyArea()
		{
		}

		// Token: 0x0600E2FD RID: 58109 RVA: 0x0025EBF8 File Offset: 0x0025CDF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyArea(TrainPartyArea other) : this()
		{
			this.areaId_ = other.areaId_;
			this.dynamicInfo_ = other.dynamicInfo_.Clone();
			this.stepIdList_ = other.stepIdList_.Clone();
			this.nOPJINFMFEI_ = other.nOPJINFMFEI_.Clone();
			this.progress_ = other.progress_;
			this.areaStepInfo_ = ((other.areaStepInfo_ != null) ? other.areaStepInfo_.Clone() : null);
			this.staticPropIdList_ = other.staticPropIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E2FE RID: 58110 RVA: 0x0025EC94 File Offset: 0x0025CE94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyArea Clone()
		{
			return new TrainPartyArea(this);
		}

		// Token: 0x17003FE8 RID: 16360
		// (get) Token: 0x0600E2FF RID: 58111 RVA: 0x0025EC9C File Offset: 0x0025CE9C
		// (set) Token: 0x0600E300 RID: 58112 RVA: 0x0025ECA4 File Offset: 0x0025CEA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17003FE9 RID: 16361
		// (get) Token: 0x0600E301 RID: 58113 RVA: 0x0025ECAD File Offset: 0x0025CEAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<AreaDynamicInfo> DynamicInfo
		{
			get
			{
				return this.dynamicInfo_;
			}
		}

		// Token: 0x17003FEA RID: 16362
		// (get) Token: 0x0600E302 RID: 58114 RVA: 0x0025ECB5 File Offset: 0x0025CEB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> StepIdList
		{
			get
			{
				return this.stepIdList_;
			}
		}

		// Token: 0x17003FEB RID: 16363
		// (get) Token: 0x0600E303 RID: 58115 RVA: 0x0025ECBD File Offset: 0x0025CEBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> NOPJINFMFEI
		{
			get
			{
				return this.nOPJINFMFEI_;
			}
		}

		// Token: 0x17003FEC RID: 16364
		// (get) Token: 0x0600E304 RID: 58116 RVA: 0x0025ECC5 File Offset: 0x0025CEC5
		// (set) Token: 0x0600E305 RID: 58117 RVA: 0x0025ECCD File Offset: 0x0025CECD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Progress
		{
			get
			{
				return this.progress_;
			}
			set
			{
				this.progress_ = value;
			}
		}

		// Token: 0x17003FED RID: 16365
		// (get) Token: 0x0600E306 RID: 58118 RVA: 0x0025ECD6 File Offset: 0x0025CED6
		// (set) Token: 0x0600E307 RID: 58119 RVA: 0x0025ECDE File Offset: 0x0025CEDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AreaStepInfo AreaStepInfo
		{
			get
			{
				return this.areaStepInfo_;
			}
			set
			{
				this.areaStepInfo_ = value;
			}
		}

		// Token: 0x17003FEE RID: 16366
		// (get) Token: 0x0600E308 RID: 58120 RVA: 0x0025ECE7 File Offset: 0x0025CEE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> StaticPropIdList
		{
			get
			{
				return this.staticPropIdList_;
			}
		}

		// Token: 0x0600E309 RID: 58121 RVA: 0x0025ECEF File Offset: 0x0025CEEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyArea);
		}

		// Token: 0x0600E30A RID: 58122 RVA: 0x0025ED00 File Offset: 0x0025CF00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyArea other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.dynamicInfo_.Equals(other.dynamicInfo_) && this.stepIdList_.Equals(other.stepIdList_) && this.nOPJINFMFEI_.Equals(other.nOPJINFMFEI_) && this.Progress == other.Progress && object.Equals(this.AreaStepInfo, other.AreaStepInfo) && this.staticPropIdList_.Equals(other.staticPropIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E30B RID: 58123 RVA: 0x0025EDB4 File Offset: 0x0025CFB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			num ^= this.dynamicInfo_.GetHashCode();
			num ^= this.stepIdList_.GetHashCode();
			num ^= this.nOPJINFMFEI_.GetHashCode();
			if (this.Progress != 0U)
			{
				num ^= this.Progress.GetHashCode();
			}
			if (this.areaStepInfo_ != null)
			{
				num ^= this.AreaStepInfo.GetHashCode();
			}
			num ^= this.staticPropIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E30C RID: 58124 RVA: 0x0025EE5A File Offset: 0x0025D05A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E30D RID: 58125 RVA: 0x0025EE62 File Offset: 0x0025D062
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E30E RID: 58126 RVA: 0x0025EE6C File Offset: 0x0025D06C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.dynamicInfo_.WriteTo(ref output, TrainPartyArea._repeated_dynamicInfo_codec);
			if (this.areaStepInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.AreaStepInfo);
			}
			this.staticPropIdList_.WriteTo(ref output, TrainPartyArea._repeated_staticPropIdList_codec);
			this.stepIdList_.WriteTo(ref output, TrainPartyArea._repeated_stepIdList_codec);
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.AreaId);
			}
			if (this.Progress != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Progress);
			}
			this.nOPJINFMFEI_.WriteTo(ref output, TrainPartyArea._repeated_nOPJINFMFEI_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E30F RID: 58127 RVA: 0x0025EF28 File Offset: 0x0025D128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			num += this.dynamicInfo_.CalculateSize(TrainPartyArea._repeated_dynamicInfo_codec);
			num += this.stepIdList_.CalculateSize(TrainPartyArea._repeated_stepIdList_codec);
			num += this.nOPJINFMFEI_.CalculateSize(TrainPartyArea._repeated_nOPJINFMFEI_codec);
			if (this.Progress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Progress);
			}
			if (this.areaStepInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AreaStepInfo);
			}
			num += this.staticPropIdList_.CalculateSize(TrainPartyArea._repeated_staticPropIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E310 RID: 58128 RVA: 0x0025EFE4 File Offset: 0x0025D1E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyArea other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this.dynamicInfo_.Add(other.dynamicInfo_);
			this.stepIdList_.Add(other.stepIdList_);
			this.nOPJINFMFEI_.Add(other.nOPJINFMFEI_);
			if (other.Progress != 0U)
			{
				this.Progress = other.Progress;
			}
			if (other.areaStepInfo_ != null)
			{
				if (this.areaStepInfo_ == null)
				{
					this.AreaStepInfo = new AreaStepInfo();
				}
				this.AreaStepInfo.MergeFrom(other.AreaStepInfo);
			}
			this.staticPropIdList_.Add(other.staticPropIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E311 RID: 58129 RVA: 0x0025F0A4 File Offset: 0x0025D2A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E312 RID: 58130 RVA: 0x0025F0B0 File Offset: 0x0025D2B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 88U)
				{
					if (num <= 34U)
					{
						if (num == 18U)
						{
							this.dynamicInfo_.AddEntriesFrom(ref input, TrainPartyArea._repeated_dynamicInfo_codec);
							continue;
						}
						if (num == 34U)
						{
							if (this.areaStepInfo_ == null)
							{
								this.AreaStepInfo = new AreaStepInfo();
							}
							input.ReadMessage(this.AreaStepInfo);
							continue;
						}
					}
					else
					{
						if (num == 64U || num == 66U)
						{
							this.staticPropIdList_.AddEntriesFrom(ref input, TrainPartyArea._repeated_staticPropIdList_codec);
							continue;
						}
						if (num == 88U)
						{
							goto IL_C2;
						}
					}
				}
				else if (num <= 104U)
				{
					if (num == 90U)
					{
						goto IL_C2;
					}
					if (num == 104U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.Progress = input.ReadUInt32();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.nOPJINFMFEI_.AddEntriesFrom(ref input, TrainPartyArea._repeated_nOPJINFMFEI_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_C2:
				this.stepIdList_.AddEntriesFrom(ref input, TrainPartyArea._repeated_stepIdList_codec);
			}
		}

		// Token: 0x040059C7 RID: 22983
		private static readonly MessageParser<TrainPartyArea> _parser = new MessageParser<TrainPartyArea>(() => new TrainPartyArea());

		// Token: 0x040059C8 RID: 22984
		private UnknownFieldSet _unknownFields;

		// Token: 0x040059C9 RID: 22985
		public const int AreaIdFieldNumber = 13;

		// Token: 0x040059CA RID: 22986
		private uint areaId_;

		// Token: 0x040059CB RID: 22987
		public const int DynamicInfoFieldNumber = 2;

		// Token: 0x040059CC RID: 22988
		private static readonly FieldCodec<AreaDynamicInfo> _repeated_dynamicInfo_codec = FieldCodec.ForMessage<AreaDynamicInfo>(18U, AreaDynamicInfo.Parser);

		// Token: 0x040059CD RID: 22989
		private readonly RepeatedField<AreaDynamicInfo> dynamicInfo_ = new RepeatedField<AreaDynamicInfo>();

		// Token: 0x040059CE RID: 22990
		public const int StepIdListFieldNumber = 11;

		// Token: 0x040059CF RID: 22991
		private static readonly FieldCodec<uint> _repeated_stepIdList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x040059D0 RID: 22992
		private readonly RepeatedField<uint> stepIdList_ = new RepeatedField<uint>();

		// Token: 0x040059D1 RID: 22993
		public const int NOPJINFMFEIFieldNumber = 15;

		// Token: 0x040059D2 RID: 22994
		private static readonly FieldCodec<uint> _repeated_nOPJINFMFEI_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x040059D3 RID: 22995
		private readonly RepeatedField<uint> nOPJINFMFEI_ = new RepeatedField<uint>();

		// Token: 0x040059D4 RID: 22996
		public const int ProgressFieldNumber = 14;

		// Token: 0x040059D5 RID: 22997
		private uint progress_;

		// Token: 0x040059D6 RID: 22998
		public const int AreaStepInfoFieldNumber = 4;

		// Token: 0x040059D7 RID: 22999
		private AreaStepInfo areaStepInfo_;

		// Token: 0x040059D8 RID: 23000
		public const int StaticPropIdListFieldNumber = 8;

		// Token: 0x040059D9 RID: 23001
		private static readonly FieldCodec<uint> _repeated_staticPropIdList_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x040059DA RID: 23002
		private readonly RepeatedField<uint> staticPropIdList_ = new RepeatedField<uint>();
	}
}
